import {get, post,postFile} from "./axios";

const login = (parms: any) => post("api/login", parms);
const register = (parms: any) => post("api/saveUser", parms);
const querypay = (parms: any) => post("api/querypay", parms);
const savetype = (parms: any) => post("api/savetype", parms);
const paylist = (parms: any) => post("api/paylist", parms);//支付给那些

// const file = (parms: any) => post("api/paylist", parms);//支付给那些
const userpayAdd = (parms: any) => post("api/userpayAdd", parms);//支付提交
const getUser = (parms: any) => post("api/getUser", parms);//用户信息
const updateUser = (parms: any) => post("api/updateUser", parms);//更新信息
const queryTypePay = (parms: any) => post("api/queryTypePay", parms);//查询用户参与信息
const paysp = (parms: any) => post("api/paysp", parms);//查询用户参与信息
const child = (parms: any) => post("api/child", parms);//查 询jiedian
const menu = (parms: any) => post("api/menu", parms);//查 询jiedian
const paysum = (parms: any) => post("api/paysum", parms);//查 询jiedian

// 用户列表
const apiList = {
    login,
    register,
    querypay,
    savetype,
    post,
    postFile,
    paylist,
    userpayAdd,
    getUser,
    paysp,
    child,
    paysum,
    menu,
    queryTypePay,
    updateUser
};
export default apiList;
